$(document).ready(function(){    	
		    $("#loginForm").validate();	
		    
		    //验证邮箱的正确格式
		    jQuery.validator.addMethod("isEmail",function(value , element){
				var isEmail = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/;
				return this.optional(element) || (isEmail.test(value));
			},"确认输入正确的邮箱格式");
		    
		    //验证密码是否符合规范
		    jQuery.validator.addMethod("isPassword",function(value , element){
				var password = /^[a-zA-Z0-9_]{6,20}$/;
				return this.optional(element) || (password.test(value));
			},"仅限数字、大小写字母，长度为【6-20】");		    		   
        });